From 3fb2ffa5099743cc76b315b4e03b6577d94859f5 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Mon, 16 Mar 2026 22:31:16 +0100 Subject: [PATCH] global: Stop using clutter_get_default_backend Adapt to change proposed at https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4981 Part-of: --- src/shell-global.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shell-global.c b/src/shell-global.c index fb8ea9a13..b6565a64e 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -897,8 +897,8 @@ global_stage_after_paint (ClutterStage *stage, { /* At this point, we've finished all layout and painting, but haven't * actually flushed or swapped */ - - ClutterBackend *backend = clutter_get_default_backend (); + ClutterContext *context = clutter_actor_get_context (CLUTTER_ACTOR (stage)); + ClutterBackend *backend = clutter_context_get_backend (context); CoglContext *cogl_context = clutter_backend_get_cogl_context (backend); CoglDisplay *cogl_display = cogl_context_get_display (cogl_context); CoglRenderer *cogl_renderer = cogl_display_get_renderer (cogl_display); -- 2.39.5